﻿<UserControl x:Class="CPPEI.UpdatePackageTool.BasicInfoControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="470">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
       
        <StackPanel Orientation="Horizontal" Grid.Row="1" >
            <Label Content="新版本路径:"  VerticalAlignment="Center" FontSize="15"/>
            <TextBox x:Name="_ctlFileName" Text="{Binding Path=CurrentVersionsPath}"  Height="25" Width="300"  Margin="5"/>
            <Button x:Name="_ctlBtnUpload" Width="50" Height="30" Content="浏览"  Margin="5" Click="_ctlBtnUpload_Click"/>

        </StackPanel>
        <StackPanel Orientation="Horizontal" Grid.Row="2" >
            <Label Content="原版本路径:" VerticalAlignment="Center" FontSize="15"/>
            <TextBox x:Name="_ctlCurrentFileName" Text="{Binding Path=PastVersionsPath}" Height="25" Width="300"  Margin="5"/>
            <Button x:Name="_ctlBtnCurrentUpload" Width="50" Height="30" Content="浏览"  Margin="5" Click="_ctlBtnCurrentUpload_Click"/>

        </StackPanel>
        <StackPanel Orientation="Horizontal" Grid.Row="3">
            <Label Content="更新包路径:" VerticalAlignment="Center" FontSize="15"/>
            <TextBox x:Name="_ctlCreateFileName"  Height="25" Width="300"  Margin="5"/>
            <Button x:Name="_ctlBtnCreateUpload" Width="50" Height="30" Content="浏览"  Margin="5" Click="_ctlBtnCreateUpload_Click"/>
        </StackPanel>
        <StackPanel Grid.Row="4" Orientation="Horizontal">
            <Label Content="新版版本号:" FontSize="15" VerticalContentAlignment="Center"/>
            <TextBox x:Name="_ctlNewVerNUM" Text="{Binding Path=CurrentVersion}" Width="120" Height="25"/>

            <Label Content="原版版本号:" FontSize="15" VerticalContentAlignment="Center" Margin="5"/>
            <TextBox x:Name="_ctlOldVerNUM" Text="{Binding Path=PastVersion}" Width="120" Height="25"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal" Grid.Row="5" HorizontalAlignment="Right">
            <Label x:Name="_ctlLblMessage" Width="300" Height="35"  Foreground="Red" FontSize="15"/>
            <Button x:Name="_ctlBtnNext" Content="下一步" Width="100" Height="25" Margin="5" Click="_ctlBtnNext_Click"/>
        </StackPanel>
    </Grid>
</UserControl>
